<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
        'htmlOptions' => array('class' => 'mainForm'),
)); ?>
    <fieldset>
	<div class="rowElem">
            <?php echo $form->label($model,'productId'); ?>
            <div class="formRight"><?php echo $form->textField($model, 'productId', array('size' => 20, 'maxlength' => 20, "class"=>"rightDir", "title"=>"Id")); ?></div>
            <div class="fix"></div>
        </div>
        <div class="rowElem">
            <?php echo $form->label($model,'name'); ?>
            <div class="formRight"><?php echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 255, "class"=>"rightDir", "title"=>"Name")); ?></div>
            <div class="fix"></div>
        </div>
        <div class="rowElem">
            <?php echo $form->label($model,'description'); ?>
            <div class="formRight"><?php echo $form->textField($model, 'description', array('rows'=>6, 'cols'=>50, "class"=>"rightDir", "title"=>"Desription")); ?></div>
            <div class="fix"></div>
        </div>
        <div class="rowElem">
            <?php echo $form->label($model,'price'); ?>
            <div class="formRight"><?php echo $form->textField($model, 'price', array('size' => 60, 'maxlength' => 255, "class"=>"rightDir", "title"=>"Price")); ?></div>
            <div class="fix"></div>
        </div>
        <div class="rowElem">
            <?php echo $form->label($model,'cost'); ?>
            <div class="formRight"><?php echo $form->textField($model, 'cost', array('size' => 60, 'maxlength' => 255, "class"=>"rightDir", "title"=>"Cost")); ?></div>
            <div class="fix"></div>
        </div>
	<div class="rowElem">
            <?php echo $form->label($model,'status'); ?>
            <div class="formRight"><?php echo $form->textField($model, 'status', array('size' => 20, 'maxlength' => 20, "class"=>"rightDir", "title"=>"Status")); ?></div>
            <div class="fix"></div>
        </div>
        <div class="rowElem">
            <?php echo $form->label($model,'viewCount'); ?>
            <div class="formRight"><?php echo $form->textField($model, 'viewCount', array('size' => 20, 'maxlength' => 20, "class"=>"rightDir", "title"=>"viewCount")); ?></div>
            <div class="fix"></div>
        </div>
	<div class="rowElem">
            <?php echo $form->label($model,'productCategoryId'); ?>
            <div class="formRight"><?php echo $form->textField($model, 'productCategoryId', array('size' => 20, 'maxlength' => 20, "class"=>"rightDir", "title"=>"categoryId")); ?></div>
            <div class="fix"></div>
        </div>

	<?php echo CHtml::submitButton('Search', array("class" => "greyishBtn submitForm")); ?>
    </fieldset>
<?php $this->endWidget(); ?>

